<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    'use strict'

    // 遍历数组
    const arr = [3, 4, 5];
    for (let data of arr) {
        console.log(data);
    }

    // 遍历map
    const map = new Map([['tom', 77], ['Jack', 88]]);
    for (const x of map) {
        console.log(x);
    }

    // set
    const set = new Set([4, 5, 6]);
    for (const x of set) {
        console.log(x);
    }
</script>
</body>
</html>